package kordegi.forumsystem.util;

import kordegi.forumsystem.shiro.UserProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author kordegi
 * @date 2022.05.05 12:43
 * @Description
 */
public class ShiroUtil {
    public static UserProfile getProfile() {
        return (UserProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
